package microservicedemo.borrowclient.Client;

import lombok.extern.slf4j.Slf4j;
import microservicedemo.borrowclient.model.BorrowRecord;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;

@Slf4j
@Component
public class BorrowServiceFallback implements BorrowServiceClient{
    @Override
    public void borrowBook(BorrowRecord borrowRecord) {
        log.info("Borrow Book fallback");
    }

    @Override
    public boolean returnBook(BorrowRecord borrowRecord) {
        log.info("Return Book fallback");
        return false;
    }

    @Override
    public List<BorrowRecord> getOverdueBook() {
        log.info("Get Overdue Book fallback");
        return Collections.emptyList();
    }
}
